<%@page import="transfer.Warehouse"%>
<%@page import="content.WarehouseContent"%>
<%@page import="java.util.ArrayList"%>

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=geometry"></script> 
<script type="text/javascript" src="js/contacts.js"></script>

<div class="text-block">
    <div class="block-header">Contacts</div>
    <div class="img-big-view">
        <div class="float_left">
            <img src="images/call.jpg">
        </div>
    </div>
    <div class="float_left" style="width: 620px" >
        <div class="block-header-item">
            <H2>Telephones</H2>
        </div>
        <div style="margin-left: 90px; margin-bottom: 20px;">
            (044) 229 83 24<br/>
            (063) 540 12 67<br/>
            (067) 224 45 10<br/>
        </div>
        <div class="block-header-item">
            <H2>Schedule Call-center</H2>
        </div>
        <div class="table-view">
            <div>Mon-Fri:</div> 8:00 to 21:00<br/>
            <div>Saturday:</div> 9:00 to 20:00<br/>
            <div>Sunday:</div> 10:00 to 19:00<br/>
        </div>
    </div>
</div>
<div class="text-block">
    <div class="block-header">Delivery Terms</div>
    <div class="float_left" style="margin-right: 20px;">
        <div class="sidebar" id="googmap" style="width: 492px; height: 300px;"></div>
    </div>
    <div class="float_left" style=" width: 468px;" >
        <div class="text-block"> 
            <%
                ArrayList warehouses = WarehouseContent.getAllWarehouses();
            %>
            <h2>We have <%= warehouses.size()%> warehouses:</h2>
            <%
                for (int i = 0; i < warehouses.size(); i++) {
                    Warehouse w = (Warehouse) warehouses.get(i);
            %>
            <span class="warehouse" 
               latitude="<%= w.getAddress().getLatitude()%>" 
               logitude="<%= w.getAddress().getLongitude()%>"
               name="<%= w.getNameWarehouse()%>">
                <%= i+1 %>. <span class="blue-text-small">"<%= w.getNameWarehouse()%>"</span>, <%= w.getAddress()%> </span>
                <% }%>
        </div>
    </div>
</div>